home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Tele / C / Comet2.1.3 Folder / Comet / mactcp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-05-01  |  560 b   |  22 lines  |  [TEXT/MPS ]

  1.  
  2. #define        PBCOUNT              48
  3. #define        SENDBUFSIZE        8192
  4. #define        SENDBUFHIGH         512    /* trigger a send automatically if size == */
  5.                                     /* MacTCP chokes if > Max Seg Size */
  6. #define RDSSIZE    40
  7. #define BUFLEN    16384                /* rcv buffer len we hand to TCP */
  8.  
  9.  
  10. #define TC_PUT(thechar)                                 \
  11. {                                                        \
  12.     if (emdp->fillcount < SENDBUFSIZE) {                \
  13.         emdp->fillcount++;                                \
  14.         emdp->waitcount++;                                \
  15.         *emdp->fillp++ = thechar;                        \
  16.         if (emdp->fillp >= emdp->fillendp) {            \
  17.             emdp->fillp = emdp->sendbuf;                \
  18.         }                                                \
  19.     }                                                    \
  20. }
  21.     
  22.